<?

	////
	///
	//	Authority

		// ...



	session_start( );
	require_once('phpmailer/class.phpmailer.php');
	include_once( "JO_01_configuration.php"	);
	include_once( "JO_02_function.php"		);

?>

<meta http-equiv="content-type" content="text/HTML; charset=UTF-8" />

<style>

	body {

		margin:			0px;
		padding:		0px;
		color:			#7D7D7D;
		font-size:		11px;
		font-family:	Tahoma;
		line-height:	15px;

	}

</style>

<?

	if( isset($_REQUEST[ "JO_query" ]) ) {

		$JO_MySQL = new mysqli( $JO_DB_host, $JO_DB_user, $JO_DB_password, $JO_DB_database );
		$JO_MySQL -> query( "SET NAMES 'UTF8'" );

		switch( $_REQUEST[ "JO_query" ] ) {

			case "session"			: JO_session(			); break;

			case "logIn"			: JO_logIn( 			); break;
			case "logOut"			: JO_logOut(			); break;
			case "organzination"	: update_organzination(			); break;
			case "insert_organzination"	: insert_organzination(			); break;
			case "genre"			: update_genre(			); break;
			case "genre_add"		: insert_genre(			); break;
			
			case "rbt"				: update_rbt(			); break;
			case "rbt_add"			: insert_rbt(			); break;
			case "contact"			: update_contract(			); break;
			case "contact_add"		: insert_contract(			); break;
            case "point"			: update_point(			); break;
			case "point_add"		: insert_point(			); break;
            
			case "account"			: JO_account(			); break;
			case "find"				: getpass	(				); break;
			case "change"				: JO_change_pass	(				); break;
			case "avarta"				: JO_UpAvarta	(				); break;
			case "favorite_insert"	: JO_favorite_insert(	); break;
			case "favorite_update"	: JO_favorite_update(	); break;
			case "favorite_delete"	: JO_favorite_delete(	); break;
			case "promotion_check"	: JO_promotion_check(	); break;
                        case "SaveTopArtist"    : JO_Save_TopArtist (    );break;
                        case "uploadimg"    : JO_uploadimg (    );break;
                        case "deleteimg"    : JO_deleteimg (    );break;
                        case "editartist"    : JO_editartist (    );break;
						case "insert_recommendation"    : JO_insert_recommendation (    );break;
						case "update_recommendation"    : JO_update_recommendation (    );break;
						case "delete_recommendation"    : JO_delete_recommendation (    );break;
						case "SaveTop"   				: JO_Save_Top (    );break;

		}

		if( $JO_MySQL ) $JO_MySQL -> close( );

	}

?>
